function createNoticeAction() {

    const _map = new Map();

    //注册触发的回调函数
    function set(key: string, value: Function) {
        _map.set(key, value);
    }

    //得到回调函数并执行
    function get(key: string) {
        return _map.get(key);
    };

    return {
        set,
        get
    };
}



export const NoticeAction = createNoticeAction();